<template>
    <div>
        <div class="outer">
            <div class="title">
                <slot name="title"></slot>
            </div>
            <div class="content">
                <slot name="con" :stuData="stuData">
                </slot>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Panel",
        data(){
            return{
                stuData:[{sid:1,sname:"张三"},{sid:2,sname:"王五"},{sid:3,sname:"李四"}]
            }
        }
    }
</script>

<style scoped>
.outer{
    width: 250px; border: 1px solid slateblue
}
    .title{
        height: 45px; background-color: aqua; border: 1px solid slateblue;padding: 5px; font-weight: 900;
        line-height: 45px;
    }
    .content{
        height: 200px
    }
</style>